x86emul: Add return code information to error messages
authorPetre Pircalabu <ppircalabu@bitdefender.com>
Mon, 2 Oct 2017 15:04:55 +0000 (16:04 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Mon, 2 Oct 2017 15:04:55 +0000 (16:04 +0100)
commit1c1c39e210f0c45fcbdb7960e59afea673e433f6
tree0f1b11a85bebecfab996b64ea6c5ca2c8ac94619
parent63e49e966fafc4057deb8968b63b2bbe9bb6fd1e
x86emul: Add return code information to error messages

- print the return code of the last failed emulator operation
in hvm_dump_emulation_state.
- print the return code in sh_page_fault (SHADOW_PRINTK) to make the
distiction between X86EMUL_UNHANDLEABLE and X86EMUL_UNIMPLEMENTED.

Signed-off-by: Petre Pircalabu <ppircalabu@bitdefender.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/hvm/emulate.c
xen/arch/x86/hvm/io.c
xen/arch/x86/hvm/vmx/realmode.c
xen/arch/x86/mm/shadow/multi.c
xen/include/asm-x86/hvm/emulate.h